<% @item.visible_items.each_with_index do |field, index| %>
  <%= render Avo::Items::SwitcherComponent.new(
    resource: @resource,
    item: field,
    index: index,
    view: @view,
    form: @form,
    field_component_extra_args: @field_component_extra_args,
  )%>
<% end %>
